{if input('type')!='sms'}
<div class="customer_div" id=customer_service>
<div class="customer_uqq" id=customer_qq>
{if($type == 'qq')}
{foreach($data.qq as $v)}
{if !empty($v.kefu)}
<p><span><b>{if $v.name==''}联系QQ{else}{$v.name}{/if}：</b>{$v.kefu}</span><a class="direct_talk" target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$v.kefu}&site=qq:{$v.kefu}&menu=yes">直接对话</a><a class=add_friends href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin={$v.kefu}">加为好友</a></p>
{/if}
{/foreach}
{/if}
{if($type == 'dd')}
{foreach($data.dd as $v)}
{if !empty($v.kefu)}
<p><span><b>{if $v.name==''}联系钉钉{else}{$v.name}{/if}：</b>{$v.kefu}</span><a class="direct_talk" href="dingtalk://dingtalkclient/action/sendmsg?dingtalk_id={$v.kefu}">直接对话</a></p>
{/if}
{/foreach}
{/if}
{if($type == 'phone')}
<p><span><b>电话：</b>{$data.phone}</span><em>此为平台用户电话，非官方电话</em></p>
{/if}
</div>
<p style='width:100%;text-align:center;color:#999;border-top:#bcccee 1px dotted ;padding-top:10px;margin:0'>
声明：为了安全起见，不要轻易与卖家进行线下交易；<br />非平台线上交易的项目，出现任何后果均与{:sysconf('site_name')}无关；<br />
<font color="#444444">无论卖家以何理由要求线下交易的，请联系管理举报。</font>
</p>
</div>{/if}

{if input('type')=='sms'}
<div class="customer_div" id=customer_service>
	<p style='width:100%;text-align:center;color:blue;margin:0;'>
	当通过QQ等方式与当前卖家<font color="red">长时间无法取得联系</font>时<br />可以在此向当前卖家<font color="red">发送短信提醒</font>来尝试与其联系<br />
	<font color="#999999">24小时内限向3个卖家发送短信通知（剩余<b style='color:#2E8A11'>3</b>次）</font>
</p>
<div class="customer_sms" >

	<div class="like-iphone" >
		<div class="like-iphone-header"></div>
		<div class="like-iphone-bg">
			<div class="like-iphone-msg">【{:sysconf('site_name')}】您好，我有意购买您的商品/服务，无法与您取得联系，请您尽快联系我的QQ***、电话***					<div class="corner">
				</div>
			</div>
		</div>
	</div>
	{if(!session('?usercode'))}
				<button class="inquiry-btn" type="button" onclick="layer.closeAll();layer_login();">请先登陆</button>
	{else}
					<form class="layui-form" id="inquiry" style='background:none;'>
					<input type="hidden" value="{$data.bh}" name="to" />
					<input type="hidden" value="商品ID" name="gid" />
					<input type="hidden" value="code" name="gtype" />
					<input type="hidden" value="{:random()}" name="random" />
					<input type="hidden" value="{:passkey()}" name="passkey" />
					<button class="inquiry-btn allow" type="button" lay-filter="inquiry" lay-submit="">点击发送</button>
				</form>
				<a class="inquiry-record">发送记录</a>
	{/if}							
		</div>
<p style='width:100%;text-align:center;color:#999;border-top:#bcccee 1px dotted ;padding-top:10px;margin:0;'>
	声明：为了安全起见，不要轻易与卖家进行线下交易；<br />
	非平台线上交易的项目，出现任何后果均与{:sysconf('site_name')}无关；<br />
	联系时请告知对方来自于{:sysconf('site_name')}，或发送{:sysconf('site_name')}信息链接；<br />
	<font color="#444444">无论卖家以何理由要求线下交易的，请联系管理举报。</font>
</p>
<script language="javascript">
 layui.use('form', function(){
  var form = layui.form();
	form.on('submit(inquiry)', function(data) {
		layer.confirm('确定要向【<b class="blue">{$data.name}</b>】发送提醒短信吗？', {icon: 3, title:'提示'}, function(index){
			Aform('inquiry',$("#inquiry").serialize());
			layer.close(index);
		});
		return false;
	});
 });
</script>
</div>{/if}




